package demo;
import java.util.*;
public class Text3 {
    public static void main(String[] args) {
        Map map=new HashMap();
        Map map1=new TreeMap();
        map.put("1","zuo");
        map.put("2","li");
        map1.put("3","zhi");
        map1.put("4","123");
        System.out.println(map.get("2"));
        Set keySet=map1.keySet();
        Iterator a= keySet.iterator();
        while(a.hasNext())
        {
            Object b=a.next();
            Object value=map1.get(b);
            System.out.println(b+":"+value);
        }
    }
}
